let xny =
  /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([A-HJ-K][A-HJ-NP-Z0-9][0-9]{4}$))/;
let ryc =
  /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
export default {
  goOutContent1: [
    { title: "路段", dataIndex: "roadName" },
    { title: "收费站", dataIndex: "deptName",width:120 },
    { title: "车牌号", dataIndex: "carNo",width:100 },
    { title: "车型", dataIndex: "carModel" },
    { title: "车种", dataIndex: "carKind" },
    { title: "OBU号", dataIndex: "obuNo" },
    { title: "卡号", dataIndex: "cardNo" },
    { title: "OBU车牌", dataIndex: "obuCarNo" },
    { title: "OBU车型", dataIndex: "obuCarModel" },
    { title: "OBU车种", dataIndex: "obuCarKind" },
    { title: "异常原因", dataIndex: "cause" },
    { title: "是否逃漏费", dataIndex: "isFee",render:(text)=>{
      if(text==1) return "是"
      if(text==0) return "否"
    } },
    { title: "省级工单数", dataIndex: "sjOrderNo" },
    { title: "省级工单涉及金额", dataIndex: "sjOrderFee" },
    { title: "部级工单数", dataIndex: "bjOrderNo" },
    { title: "部级工单涉及金额", dataIndex: "bjOrderFee" },
    { title: "通行时间", dataIndex: "passTime" },
    { title: "证据图片", dataIndex: "zjPicture", isImg: true },
    { title: "填报人", dataIndex: "userName" },
    { title: "填报时间", dataIndex: "reportTime",width:160  },
    { title: "联系电话", dataIndex: "phoneNum" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 160,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],
  goOutContent2: [
    { title: "公司", dataIndex: "companyName" },
    { title: "路段", dataIndex: "roadName" },
    { title: "查处部门/单位", dataIndex: "deptName" },
    { title: "车牌号(颜色）", dataIndex: "carNo" },
    { title: "OBU号", dataIndex: "obuNo" },
    { title: "ETC卡号", dataIndex: "etcCardNo" },
    { title: "发行方省份", dataIndex: "publishProvince" },
    { title: "追缴金额", dataIndex: "persuePayAmount" },
    { title: "完成补费证据", dataIndex: "wcbfEvidence" },
    { title: "纠证前发行信息证据", dataIndex: "jzqfxxxEvidence" },
    { title: "查处人员", dataIndex: "userName" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 250,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],
  goOutContent3: [
    { title: "路段", dataIndex: "roadName" },
    { title: "收费站", dataIndex: "deptName"},
    { title: "入口/出口", dataIndex: "entryOrExit",render:(text)=>{
      if(text==1) return '入口'
       if(text==2) return '出口'
    } },
    { title: "通行时间", dataIndex: "passTime" },
    { title: "车牌号", dataIndex: "carNo" },
    { title: "是否补费", dataIndex: "isPay",render:(text)=>{
      if(text==1) return '是'
       if(text==0) return '否'
    }},
    { title: "放行人员", dataIndex: "releaseOfficer" },
    { title: "补费人员", dataIndex: "payPerson" },
    { title: "备注", dataIndex: "remark" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 250,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],
  goOutContent4: [
    { title: "单位名称", dataIndex: "companyName" },
    { title: "路段名称", dataIndex: "roadName" },
    { title: "收费站名称", dataIndex: "deptName"},
    { title: "年度", dataIndex: "year" },
    { title: "月份", dataIndex: "month" },
    { title: "优惠金额(万元)", dataIndex: "derateAmount" },
    { title: "优惠车辆数(万辆)", dataIndex: "derateVehiclesNo" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 250,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],
  goOutContent5: [
    { title: "单位名称", dataIndex: "companyName" },
    { title: "路段名称", dataIndex: "roadName" },
    { title: "收费站名称", dataIndex: "deptName"},
    { title: "年度", dataIndex: "year" },
    { title: "月份", dataIndex: "month" },
    { title: "优惠金额(万元)", dataIndex: "derateAmount" },
    { title: "优惠车辆数(万辆)", dataIndex: "derateVehicles" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 250,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],
  formItemConfig1: [
    // {
    //   label: "路段",
    //   prop: "roadId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    {
      label: "收费站",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "车牌号",
      prop: "carNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      rules: [
        { required: true, message: "车牌号不能为空", trigger: "blur" },
        {
          validator: (rule, value, callback) => {
            if (!xny.test(value) && !ryc.test(value)) {
              callback(new Error("请输入正确的车牌号"));
            } else {
              callback();
            }
          },
          trigger: "blur",
        },
      ],
      labelWidth: "100px",
    },
    {
      label: "车型",
      prop: "carModel",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "车种",
      prop: "carKind",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "OBU号",
      prop: "obuNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "卡号",
      prop: "cardNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
       labelWidth: "100px",
    },
    {
      label: "OBU车牌",
      prop: "obuCarNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "OBU车型",
      prop: "obuCarModel",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "OBU车种",
      prop: "obuCarKind",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "异常原因",
      prop: "cause",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "是否逃漏费",
      prop: "isFee",
      component: "select",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
      options:[{label:"是",value:'1'},{label:"否",value:'0'}]
    },
    {
      label: "省级工单数",
      prop: "sjOrderNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "省级工单涉及金额",
      prop: "sjOrderFee",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "140px",
    },
    {
      label: "部级工单数",
      prop: "bjOrderNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "部级工单涉及金额",
      prop: "bjOrderFee",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth: "140px",
    },
    {
      label: "通行时间",
      prop: "passTime",
      component: "date",
      clearable: true,
      type: "date",
      format: "YYYY-MM-DD",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "证据图片",
      prop: "zjPicture",
      component: "img",
      placeholder: "请输入",
      span: 24,
    },
  ],
  formItemConfig2: [
    // {
    //   label: "公司",
    //   prop: "companyId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    // {
    //   label: "路段",
    //   prop: "roadId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    {
      label: "查处部门/单位",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
      labelWidth:"120px"
    },
    {
      label: "车牌号(颜色）",
      prop: "carNo",
      component: "carcolor",
      placeholder: "请输入",
      span: 12,
      labelWidth:"120px",
      rules: [
        { required: true, message: "车牌号不能为空", trigger: "blur" },
        {
          validator: (rule, value, callback) => {
            if (!xny.test(value) && !ryc.test(value)) {
              callback(new Error("请输入正确的车牌号"));
            } else {
              callback();
            }
          },
          trigger: "blur",
        },
      ],
    },
    {
      label: "OBU号",
      prop: "obuNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
    },
    {
      label: "ETC卡号",
      prop: "etcCardNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
    },
    {
      label: "发行方省份",
      prop: "publishProvince",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth:"100px"
    },
    {
      label: "追缴金额",
      prop: "persuePayAmount",
      component: "input",
      placeholder: "请输入",
      span: 12,
    },

    {
      label: "纠证前发行信息证据",
      prop: "jzqfxxxEvidence",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth:"150px"
    },
    {
      label: "查处人员",
      prop: "userId",
      component: "input",
      placeholder: "请输入",
      span: 12,
    },
    {
      label: "完成补费证据",
      prop: "wcbfEvidence",
      component: "img",
      placeholder: "请上传",
      span: 24,
      labelWidth:"120px"
    },
  ],
  formItemConfig3: [  
    // {
    //   label: "路段",
    //   prop: "roadId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    {
      label: "收费站",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
    },
    {
      label: "入口/出口",
      prop: "entryOrExit",
      component: "select",
      placeholder: "请输入",
      span: 12,
      labelWidth:"100"
    },
    {
      label: "通行时间",
      prop: "passTime",
      component: "date",
      clearable: true,
      type: "date",
      format: "YYYY-MM-DD",
      span: 12,
    },
    {
      label: "车牌号",
      prop: "carNo",
      component: "input",
      placeholder: "请输入",
      span: 12,
      rules: [
        { required: true, message: "车牌号不能为空", trigger: "blur" },
        {
          validator: (rule, value, callback) => {
            if (!xny.test(value) && !ryc.test(value)) {
              callback(new Error("请输入正确的车牌号"));
            } else {
              callback();
            }
          },
          trigger: "blur",
        },
      ],
      labelWidth:"100"
    },
    {
      label: "是否补费",
      prop: "isPay",
      component: "select",
      placeholder: "请输入",
      span: 12,
      options:[{label:"是",value:1},{label:"否",value:0}]
    },
    {
      label: "放行人员",
      prop: "releaseOfficer",
      component: "input",
      placeholder: "请输入",
      span: 12,
      labelWidth:"100"
    },
    {
      label: "补费人员",
      prop: "payPerson",
      component: "input",
      placeholder: "请输入",
      span: 12,
    },
    {
      label: "备注",
      prop: "remark",
      component: "input",
      type:"textarea",
      placeholder: "请输入",
      span: 24,
    },
    
  ],
  formItemConfig4: [  
    // {
    //   label: "公司",
    //   prop: "companyId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    // {
    //   label: "路段名称",
    //   prop: "loadId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    {
      label: "收费站",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
    },
    // {
    //   label: "年度",
    //   prop: "year",
    //   component: "date",
    //   clearable: true,
    //   type: "year",
    //   format: "YYYY",
    //   span: 12,
    // },
    {
      label: "月份",
      prop: "yearMonth",
      component: "date",
      clearable: true,
      type: "month",
      format: "YYYY-MM",
      span: 12,
    },
    {
      label: "优惠金额",
      prop: "derateAmount",
      component: "number",
      placeholder: "请输入",
      span: 12,
      labelWidth:"120px",
      suffix:"万元"
    },
    {
      label: "优惠车辆数",
      prop: "derateVehiclesNo",
      component: "number",
      placeholder: "请输入",
      span: 12,
      labelWidth:"120px",
      suffix:"万辆"
    },
    
    
  ],
  formItemConfig5: [  
    // {
    //   label: "单位名称",
    //   prop: "companyId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    // {
    //   label: "路段名称",
    //   prop: "roadId",
    //   component: "tree",
    //   placeholder: "请选择",
    //   span: 12,
    // },
    {
      label: "收费站名称",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
      labelWidth:"130px"
    },
    // {
    //   label: "年度",
    //   prop: "year",
    //   component: "date",
    //   clearable: true,
    //   type: "year",
    //   format: "YYYY",
    //   span: 12,
    //    labelWidth:"130px"
    // },
    {
      label: "月份",
      prop: "yearMonth",
      component: "date",
      clearable: true,
      type: "month",
      format: "YYYY-MM",
      span: 12,
       labelWidth:"130px"
    },
    {
      label: "优惠金额",
      prop: "derateAmount",
      component: "number",
      placeholder: "请输入",
      span: 12,
       labelWidth:"120px",
       suffix:"万元"
    },
    {
      label: "优惠车辆数",
      prop: "derateVehicles",
      component: "number",
      placeholder: "请输入",
      span: 12,
       labelWidth:"120px",
        suffix:"万辆"
    },
    
    
  ],
  rules1:{
    deptId: [
      {required: true, message: '收费站不能为空', trigger: 'blur'},
    ],
    carNo: [
      {required: true, message: '车牌号不能为空', trigger: 'blur'},
    ],
    passTime: [
      {required: true, message: '通行时间不能为空', trigger: 'blur'},
    ],
  },
  rules2:{
    deptId: [
      {required: true, message: '收费站不能为空', trigger: 'blur'},
    ],
    carNo: [
      {required: true, message: '车牌号不能为空', trigger: 'blur'},
    ],
  },
  rules3:{
    deptId: [
      {required: true, message: '收费站不能为空', trigger: 'blur'},
    ],
    carNo: [
      {required: true, message: '车牌号不能为空', trigger: 'blur'},
    ],
    passTime: [
      {required: true, message: '通行时间不能为空', trigger: 'blur'},
    ],
  },
  rules4:{
    deptId: [
      {required: true, message: '收费站不能为空', trigger: 'blur'},
    ],
  },
  rules5:{
    deptId: [
      {required: true, message: '收费站不能为空', trigger: 'blur'},
    ],
  },

};
